package com.woniuxy.auth.filter;/*
@author houguai
@create 2021-03-04 19:31
*/

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//@WebFilter("/*")
public class Testfiter implements Filter {

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        response.getWriter().write("ok");
        response.getWriter().flush();
    }

    @Override
    public void destroy() {

    }

}
